package main

import (
	"fmt"
)

func main() {
	ch := make(chan int)
	go read(ch)
	ch <- 1
	ch <- 2
	ch <- 3
	// time.Sleep(time.Second)
}

// <- chan int is a read only channel
func read(ch <-chan int) {
	for v := range ch {
		fmt.Println(v)
	}
}
